<div class="ciucourses view">
	
	<?php $tokens=array( 0=> $this->Html->link("Editar", array('controller' => 'ciucourses', 'action' => 'edit', $ciucourse['Ciucourse']['id']))
							, 1=>"Curso" )  ?>
	<?php  echo $this->element("breadcrumb", array('tokens'=>$tokens) ); ?>

	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Código curso'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciucourse['Ciucourse']['id']; ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciusubject'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciucourse['Ciusubject']['name'] ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciulanguage'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciucourse['Ciulanguage']['name'] ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciutimetable'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciucourse['Ciutimetable']['name'] ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciuroom'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciucourse['Ciuroom']['name'] ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Docente'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciucourse['Ciuuser']['name'] ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciucoursestate'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $ciucourse['Ciucoursestate']['name'] ?>
			&nbsp;
		</dd>
		
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ciuacademicperiod'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo  $ciucourse['Ciuacademicperiod']['name'] ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Cantidad estudiantes'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo  $totalstudent ?>
			&nbsp;
		</dd>
	</dl>
</div>

<div class="related">
	<h3><?php __('Estudiantes');?></h3>
	<?php if (!empty($students)):?>
	<table class="zebra" cellpadding = "0" cellspacing = "0">
	<thead>
	<tr>
		<th><?php __('Document'); ?></th>
		<th><?php __('Name'); ?></th>
		<th><?php __('Active'); ?></th>	
		<th class="actions"><?php __('');?></th>
	</tr>
	</thead>
	<?php
		$i = 0;
		foreach ($students as $key => $val):
		    $row= $val['CiucourseCiustudent'];
			$user= $val['Ciuuser'];
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $user['document'];?></td>
			<td><?php echo $user['first_names'] ." ". $user['last_names'];?></td>
			<td><?php echo $user['isactive'];?></td>
			<td class="actions">
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>
<!--
	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Ciuexam Ciuuser', true), array('controller' => 'ciuexam_ciuusers', 'action' => 'add'));?> </li>
		</ul>
	</div>
-->
</div>

